//
//  UITextField+Common.m
//  ACLiteAVUISDK
//
//  Created by 冯琰琰 on 2021/3/29.
//

#import "UITextField+Common.h"
#import <objc/runtime.h>
@implementation UITextField (Common)
-(void)setPlaceHolderTextColor:(UIColor *)color{
    Ivar ivar = class_getInstanceVariable([UITextField class], "_placeholderLabel");
    UILabel *placeholderLabel = object_getIvar(self, ivar);
    placeholderLabel.textColor = color;
}

-(void)setPlaceHolderTextFont:(UIFont *)font{
    Ivar ivar = class_getInstanceVariable([UITextField class], "_placeholderLabel");
    UILabel *placeholderLabel = object_getIvar(self, ivar);
    placeholderLabel.font = font;
}
@end
